package patrol.mobile.com.mobilepatrol.bean;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

import patrol.mobile.com.mobilepatrol.activity.yanghuke.zuoyeshangbao.bean.ZuoYeBean;

/**
 * Created by z on 2018/10/29.
 * Des:
 */

public class DingweiBean implements Serializable {

    /**
     * list : [{"id":"3b7b621d243f47cb922a594087f9e1af","isNewRecord":false,"remarks":"3541","createDate":"2018-10-28 01:22:15","updateDate":"2018-10-28 01:22:29","org":{"id":"f3a5d918234c47c4b0d17b46c9731a43","isNewRecord":false,"remarks":"","createDate":"","updateDate":"","parentId":"","innerCode":"","iconCls":"","orderNo":0,"isLeaf":false,"text":"","treeTable":"sys_org","busiField":"","busiFieldValue":"","orgCode":"","orgName":"莎车分局","orgType":"","address":"","zipCode":"","master":"","phone":"","fax":"","email":"","flowId":"","officeId":0,"extParentData":false,"noUsed":false,"content":"","state":"closed"},"orgName":"莎车分局","orgId":"","curingStop":"巴楚养护站","worksDate":"2018-09-30","weather":"晴","routelinename":"G312","routelineid":"","pot":"K100+000","worksType":"修补坑槽","worksNum":"20","technician":"阿力木江","security":"王平","worksTeam":"巴楚养护站第一道班","situation":"完全按照安全规范布设","worksPhoto":"","strId":"","auditFlag":"","auditName":"","olat":"","olng":"","yhkOperationAreaLayList":[],"yhkOperationAreaPostList":[]},{"id":"f9722880ce7c4e04be93f941077343a5","isNewRecord":false,"remarks":"","createDate":"2018-10-22 17:43:41","updateDate":"2018-10-22 17:45:03","org":{"id":"b37fa1e91bd44824aa8d6620c5611748","isNewRecord":false,"remarks":"","createDate":"","updateDate":"","parentId":"","innerCode":"","iconCls":"","orderNo":0,"isLeaf":false,"text":"","treeTable":"sys_org","busiField":"","busiFieldValue":"","orgCode":"","orgName":"巴楚分局","orgType":"","address":"","zipCode":"","master":"","phone":"","fax":"","email":"","flowId":"","officeId":0,"extParentData":false,"noUsed":false,"content":"","state":"closed"},"orgName":"巴楚分局","orgId":"","curingStop":"巴楚分局第二养护站","worksDate":"2018-10-22","weather":"小雪","routelinename":"S112","routelineid":"","pot":"K100.200","worksType":"临时作业","worksNum":"10","technician":"买买提","security":"阿卜杜力","worksTeam":"第二倒班","situation":"部署完成","worksPhoto":"","strId":"","auditFlag":"","auditName":"","olat":"78.748339014858","olng":"40.088872080945","yhkOperationAreaLayList":[],"yhkOperationAreaPostList":[]},{"id":"d9a69a36b879499cb1448b15a22fb5e9","isNewRecord":false,"remarks":"无","createDate":"2018-10-11 20:14:56","updateDate":"2018-10-22 17:42:08","org":{"id":"b37fa1e91bd44824aa8d6620c5611748","isNewRecord":false,"remarks":"","createDate":"","updateDate":"","parentId":"","innerCode":"","iconCls":"","orderNo":0,"isLeaf":false,"text":"","treeTable":"sys_org","busiField":"","busiFieldValue":"","orgCode":"","orgName":"巴楚分局","orgType":"","address":"","zipCode":"","master":"","phone":"","fax":"","email":"","flowId":"","officeId":0,"extParentData":false,"noUsed":false,"content":"","state":"closed"},"orgName":"巴楚分局","orgId":"","curingStop":"巴楚养护站","worksDate":"2018-10-11","weather":"晴","routelinename":"G312","routelineid":"","pot":"K100+000","worksType":"修补坑槽","worksNum":"20","technician":"阿力木江","security":"王平","worksTeam":"巴楚养护站第一道班","situation":"完全按照安全规范布设","worksPhoto":"","strId":"","auditFlag":"","auditName":"","olat":"78.74840290245","olng":"40.088896376643","yhkOperationAreaLayList":[],"yhkOperationAreaPostList":[]}]
     * rows : 3
     */

    private int rows;
    private List<ListBean> list;

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Serializable {
        /**
         * id : 3b7b621d243f47cb922a594087f9e1af
         * isNewRecord : false
         * remarks : 3541
         * createDate : 2018-10-28 01:22:15
         * updateDate : 2018-10-28 01:22:29
         * org : {"id":"f3a5d918234c47c4b0d17b46c9731a43","isNewRecord":false,"remarks":"","createDate":"","updateDate":"","parentId":"","innerCode":"","iconCls":"","orderNo":0,"isLeaf":false,"text":"","treeTable":"sys_org","busiField":"","busiFieldValue":"","orgCode":"","orgName":"莎车分局","orgType":"","address":"","zipCode":"","master":"","phone":"","fax":"","email":"","flowId":"","officeId":0,"extParentData":false,"noUsed":false,"content":"","state":"closed"}
         * orgName : 莎车分局
         * orgId :
         * curingStop : 巴楚养护站
         * worksDate : 2018-09-30
         * weather : 晴
         * routelinename : G312
         * routelineid :
         * pot : K100+000
         * worksType : 修补坑槽
         * worksNum : 20
         * technician : 阿力木江
         * security : 王平
         * worksTeam : 巴楚养护站第一道班
         * situation : 完全按照安全规范布设
         * worksPhoto :
         * strId :
         * auditFlag :
         * auditName :
         * olat :
         * olng :
         * yhkOperationAreaLayList : []
         * yhkOperationAreaPostList : []
         */

        private String id;
        private boolean isNewRecord;
        private String remarks;
        private String createDate;
        private String updateDate;
        private OrgBean org;
        private String orgName;
        private String orgId;
        private String curingStop;
        private String worksDate;
        private String weather;
        private String routelinename;
        private String routelineid;
        private String pot;
        private String worksType;
        private String worksNum;
        private String technician;
        private String security;
        private String worksTeam;
        private String situation;
        private String worksPhoto;
        private String strId;
        private String auditFlag;
        private String auditName;
        private String worksInfo;
        private String olat;
        private String olng;

        public int getIsPost() {
            return isPost;
        }

        public void setIsPost(int isPost) {
            this.isPost = isPost;
        }

        public int getIsLay() {
            return isLay;
        }

        public void setIsLay(int isLay) {
            this.isLay = isLay;
        }

        public int getIsUpQty() {
            return isUpQty;
        }

        public void setIsUpQty(int isUpQty) {
            this.isUpQty = isUpQty;
        }

        private int isPost;
        private int isLay;
        private int isUpQty;
//        private List<?> yhkOperationAreaLayList;
//        private List<?> yhkOperationAreaPostList;
        private List<ZuoYeBean.YhkOperationAreaLayListBean> yhkOperationAreaLayList;
        private List<ZuoYeBean.YhkOperationAreaPostListBean> yhkOperationAreaPostList;
        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public boolean isIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(boolean isNewRecord) {
            this.isNewRecord = isNewRecord;
        }

        public String getRemarks() {
            return remarks;
        }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getUpdateDate() {
            return updateDate;
        }

        public void setUpdateDate(String updateDate) {
            this.updateDate = updateDate;
        }

        public OrgBean getOrg() {
            return org;
        }

        public void setOrg(OrgBean org) {
            this.org = org;
        }

        public String getOrgName() {
            return orgName==null?"":orgName;
        }

        public void setOrgName(String orgName) {
            this.orgName = orgName;
        }

        public String getOrgId() {
            return orgId;
        }

        public void setOrgId(String orgId) {
            this.orgId = orgId;
        }

        public String getCuringStop() {
            return curingStop;
        }

        public void setCuringStop(String curingStop) {
            this.curingStop = curingStop;
        }

        public String getWorksDate() {
            return worksDate;
        }

        public void setWorksDate(String worksDate) {
            this.worksDate = worksDate;
        }

        public String getWeather() {
            return weather;
        }

        public void setWeather(String weather) {
            this.weather = weather;
        }

        public String getRoutelinename() {
            return routelinename;
        }

        public void setRoutelinename(String routelinename) {
            this.routelinename = routelinename;
        }

        public String getRoutelineid() {
            return routelineid;
        }

        public void setRoutelineid(String routelineid) {
            this.routelineid = routelineid;
        }

        public String getPot() {
            return pot;
        }

        public void setPot(String pot) {
            this.pot = pot;
        }

        public String getWorksType() {
            return worksType;
        }

        public void setWorksType(String worksType) {
            this.worksType = worksType;
        }

        public String getWorksNum() {
            return worksNum;
        }

        public void setWorksNum(String worksNum) {
            this.worksNum = worksNum;
        }

        public String getTechnician() {
            return technician;
        }

        public void setTechnician(String technician) {
            this.technician = technician;
        }

        public String getSecurity() {
            return security;
        }

        public void setSecurity(String security) {
            this.security = security;
        }

        public String getWorksTeam() {
            return worksTeam;
        }

        public void setWorksTeam(String worksTeam) {
            this.worksTeam = worksTeam;
        }

        public String getSituation() {
            return situation;
        }

        public void setSituation(String situation) {
            this.situation = situation;
        }

        public String getWorksPhoto() {
            return worksPhoto;
        }

        public void setWorksPhoto(String worksPhoto) {
            this.worksPhoto = worksPhoto;
        }

        public String getStrId() {
            return strId;
        }

        public void setStrId(String strId) {
            this.strId = strId;
        }

        public String getAuditFlag() {
            return auditFlag;
        }

        public void setAuditFlag(String auditFlag) {
            this.auditFlag = auditFlag;
        }

        public String getAuditName() {
            if (TextUtils.isEmpty(auditName)) {
                return "未审核";
            }
            return auditName;
        }

        public void setAuditName(String auditName) {
            this.auditName = auditName;
        }

        public String getOlat() {
            return olat;
        }

        public void setOlat(String olat) {
            this.olat = olat;
        }

        public String getOlng() {
            return olng;
        }

        public void setOlng(String olng) {
            this.olng = olng;
        }

        public List<ZuoYeBean.YhkOperationAreaLayListBean> getYhkOperationAreaLayList() {
            return yhkOperationAreaLayList;
        }

        public void setYhkOperationAreaLayList(List<ZuoYeBean.YhkOperationAreaLayListBean> yhkOperationAreaLayList) {
            this.yhkOperationAreaLayList = yhkOperationAreaLayList;
        }

        public List<ZuoYeBean.YhkOperationAreaPostListBean> getYhkOperationAreaPostList() {
            return yhkOperationAreaPostList;
        }

        public void setYhkOperationAreaPostList(List<ZuoYeBean.YhkOperationAreaPostListBean> yhkOperationAreaPostList) {
            this.yhkOperationAreaPostList = yhkOperationAreaPostList;
        }

        public String getWorksInfo() {
            return worksInfo;
        }

        public void setWorksInfo(String worksInfo) {
            this.worksInfo = worksInfo;
        }

//        public List<?> getYhkOperationAreaLayList() {
//            return yhkOperationAreaLayList;
//        }
//
//        public void setYhkOperationAreaLayList(List<?> yhkOperationAreaLayList) {
//            this.yhkOperationAreaLayList = yhkOperationAreaLayList;
//        }
//
//        public List<?> getYhkOperationAreaPostList() {
//            return yhkOperationAreaPostList;
//        }
//
//        public void setYhkOperationAreaPostList(List<?> yhkOperationAreaPostList) {
//            this.yhkOperationAreaPostList = yhkOperationAreaPostList;
//        }

        public static class OrgBean implements Serializable {
            /**
             * id : f3a5d918234c47c4b0d17b46c9731a43
             * isNewRecord : false
             * remarks :
             * createDate :
             * updateDate :
             * parentId :
             * innerCode :
             * iconCls :
             * orderNo : 0
             * isLeaf : false
             * text :
             * treeTable : sys_org
             * busiField :
             * busiFieldValue :
             * orgCode :
             * orgName : 莎车分局
             * orgType :
             * address :
             * zipCode :
             * master :
             * phone :
             * fax :
             * email :
             * flowId :
             * officeId : 0
             * extParentData : false
             * noUsed : false
             * content :
             * state : closed
             */

            private String id;
            private boolean isNewRecord;
            private String remarks;
            private String createDate;
            private String updateDate;
            private String parentId;
            private String innerCode;
            private String iconCls;
            private int orderNo;
            private boolean isLeaf;
            private String text;
            private String treeTable;
            private String busiField;
            private String busiFieldValue;
            private String orgCode;
            private String orgName;
            private String orgType;
            private String address;
            private String zipCode;
            private String master;
            private String phone;
            private String fax;
            private String email;
            private String flowId;
            private int officeId;
            private boolean extParentData;
            private boolean noUsed;
            private String content;
            private String state;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public boolean isIsNewRecord() {
                return isNewRecord;
            }

            public void setIsNewRecord(boolean isNewRecord) {
                this.isNewRecord = isNewRecord;
            }

            public String getRemarks() {
                return remarks;
            }

            public void setRemarks(String remarks) {
                this.remarks = remarks;
            }

            public String getCreateDate() {
                return createDate;
            }

            public void setCreateDate(String createDate) {
                this.createDate = createDate;
            }

            public String getUpdateDate() {
                return updateDate;
            }

            public void setUpdateDate(String updateDate) {
                this.updateDate = updateDate;
            }

            public String getParentId() {
                return parentId;
            }

            public void setParentId(String parentId) {
                this.parentId = parentId;
            }

            public String getInnerCode() {
                return innerCode;
            }

            public void setInnerCode(String innerCode) {
                this.innerCode = innerCode;
            }

            public String getIconCls() {
                return iconCls;
            }

            public void setIconCls(String iconCls) {
                this.iconCls = iconCls;
            }

            public int getOrderNo() {
                return orderNo;
            }

            public void setOrderNo(int orderNo) {
                this.orderNo = orderNo;
            }

            public boolean isIsLeaf() {
                return isLeaf;
            }

            public void setIsLeaf(boolean isLeaf) {
                this.isLeaf = isLeaf;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getTreeTable() {
                return treeTable;
            }

            public void setTreeTable(String treeTable) {
                this.treeTable = treeTable;
            }

            public String getBusiField() {
                return busiField;
            }

            public void setBusiField(String busiField) {
                this.busiField = busiField;
            }

            public String getBusiFieldValue() {
                return busiFieldValue;
            }

            public void setBusiFieldValue(String busiFieldValue) {
                this.busiFieldValue = busiFieldValue;
            }

            public String getOrgCode() {
                return orgCode;
            }

            public void setOrgCode(String orgCode) {
                this.orgCode = orgCode;
            }

            public String getOrgName() {
                return orgName;
            }

            public void setOrgName(String orgName) {
                this.orgName = orgName;
            }

            public String getOrgType() {
                return orgType;
            }

            public void setOrgType(String orgType) {
                this.orgType = orgType;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getZipCode() {
                return zipCode;
            }

            public void setZipCode(String zipCode) {
                this.zipCode = zipCode;
            }

            public String getMaster() {
                return master;
            }

            public void setMaster(String master) {
                this.master = master;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getFax() {
                return fax;
            }

            public void setFax(String fax) {
                this.fax = fax;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public String getFlowId() {
                return flowId;
            }

            public void setFlowId(String flowId) {
                this.flowId = flowId;
            }

            public int getOfficeId() {
                return officeId;
            }

            public void setOfficeId(int officeId) {
                this.officeId = officeId;
            }

            public boolean isExtParentData() {
                return extParentData;
            }

            public void setExtParentData(boolean extParentData) {
                this.extParentData = extParentData;
            }

            public boolean isNoUsed() {
                return noUsed;
            }

            public void setNoUsed(boolean noUsed) {
                this.noUsed = noUsed;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }
        }
    }
}
